Michael Flynn had sued the justice department claiming he was targeted because of his association with Trump's 2016 election campaign.